<?php
/*
  $Program: ECJC Online Shop
  $Id: subinc.php
  $Based on: osCommerce, Open Source E-Commerce Solutions
  Released under the GNU General Public License
*/


$p = "By Period";
 $subscription_pay_period_type1 = array(array('id' => 'Annually', 'text' => Annually));
    $subscription_pay_period_type1[] = array('id' => 'Quarterly','text' => Quarterly);
    $subscription_pay_period_type1[] = array('id' => 'Monthly','text' => Monthly);
    $subscription_pay_period_type1[] = array('id' => 'Weekly','text' => Weekly);
    $subscription_pay_period_type1[] = array('id' => "$p",'text' => "$p");


$paramss = 'onchange="if (this.selectedIndex == 4) { this.form.pay_period.disabled = false; this.form.pay_period.focus(); }else{ this.form.pay_period.disabled = true; }"'; ?>

<table cellSpacing="0" cellPadding="2" width="514" border="0">

  <tr>
    <td class="DialogBorder" width="516">
    <table cellSpacing="0" cellPadding="10" width="516" border="0">
      <tr>
        <td class="DialogBox" width="496">
        <table cellPadding="0" border="0">
                     <tr>
              <td class="main">Pay period</td>
              <td class="main">Period fee ($)</td>
              <td class="main">Cost of one day ($)</td>
              <td class="main">Days same period</td>
            </tr>
            <tr>
              <td vAlign="top">
              <?php echo  tep_draw_separator('pixel_trans.gif', '12', '15') . tep_draw_pull_down_menu('pay_period_type', $subscription_pay_period_type1, $pInfo->pay_period_type, $paramss); ?></td>
              <td vAlign="top">
              <?php echo  tep_draw_input_field('price_period', $pInfo->price_period); ?></td>
              <td vAlign="top">
              <?php echo  tep_draw_input_field('oneday_price', $pInfo->oneday_price); ?></td>
              <td vAlign="top">
              <?php echo  tep_draw_input_field('days_as_period', $pInfo->days_as_period); ?></td>
             </tr>
            <tr>
              <td colSpan="4" valign=top>
              <?php echo tep_draw_separator('pixel_trans.gif', '12', '15'); ?><input disabled size="12" name="pay_period" value=<? $pInfo->pay_period ?>>&nbsp;days</td>
            </tr>
                           </table>
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</a>